package com.yh.mybatis.main;

import com.yh.mybatis.pojo.User;
import com.yh.mybatis.util.SqlSessionUtil;
import org.apache.ibatis.reflection.SystemMetaObject;
import org.apache.ibatis.session.SqlSession;
import com.yh.mybatis.mapper.UserMapper;
import sun.awt.geom.AreaOp;

import java.sql.SQLOutput;

/**
 * @ClassName: Test.java
 * @author: yuhui
 * @version: 1.0.0
 * @Description: TODO
 * @createTime: 2021年04月13日 19:28:00
 */
public class Test {
    public static void main(String[] args) {
        SqlSession sqlsession = SqlSessionUtil.createSqlSession();
        UserMapper mapper = sqlsession.getMapper(UserMapper.class);
        User one = mapper.findOne(1);
        System.out.println(one.toString());
    }
}
